import { Request, RequestForExportFile } from '@/plugins/supplier-request'
import { SUPPLIER_ELIMINATE_PATH, EXPORT_PATH } from './../constans'

// 供应商管理 - 淘汰供应商 - 列表查询
export const queryEliminateSupplierListService = (data) => {
  return Request(`${SUPPLIER_ELIMINATE_PATH}/findByPage`, 'post', data)
}
// 供应商管理 - 淘汰供应商 - 导出文件
export const exportEliminateSupplierListService = (data) => {
  return RequestForExportFile(`${EXPORT_PATH}/eliminate/export`, 'post', data)
}
// 供应商管理 - 淘汰供应商 - 激活
export const activateEliminateSupplier = (data) => {
  return Request(`${SUPPLIER_ELIMINATE_PATH}/activate`, 'post', data)
}
// 供应商管理 - 淘汰供应商 - 新建淘汰
export const addEliminateSupplier = (data) => {
  return Request(`${SUPPLIER_ELIMINATE_PATH}/add`, 'post', data)
}
// 供应商管理 - 淘汰供应商 - 查询单据详情通过流程id
export const getEliminateBillDetail = (data) => {
  return Request(`${SUPPLIER_ELIMINATE_PATH}/bill/detail`, 'get', data)
}
